<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var n1=parseInt(prompt('请输入n1'));
        var n2=parseInt(prompt'请输入n2');
        function getMax(n1,n2){
            if(n1-n2>0){
                return n1;
            }
            else{
                return n2;
            }
        }
        var re1=getMax(n1,n2);
        console.log(re1); 
        function getMax1(a,b,c){
            var max=a>b?a:b;
            return max>c?max:c;
        }
        var re=getMax1(a,b,c);
        console.log(re);
    </script>
</body>
</html>